export default [
    {
        path: "/",
        redirect: "/mall"
    },
    {
        name: "mall",
        path: "/mall",
        component: () => import("@/views/pages/mall/layout.vue"),
        meta: {
            title: "商家后台",
            icon: "el-icon-s-shop"
        },
        children: [
            {
                name: "mall-archives",
                path: "archives",
                component: () => import("@/views/pages/mall/archives.vue"),
                meta: { title: "档案", icon: "el-icon-collection" }
            },
            {
                name: "mall-dashboard",
                path: "dashboard",
                component: () => import("@/views/pages/mall/dashboard.vue"),
                meta: { title: "概览", icon: "el-icon-data-analysis" }
            },
            {
                name: "mall-orders",
                path: "orders",
                component: () => import("@/views/pages/mall/orders.vue"),
                meta: { title: "订单管理", icon: "el-icon-document" }
            },
            {
                name: "mall-settings",
                path: "settings",
                component: () => import("@/views/pages/mall/settings.vue"),
                meta: { title: "系统设置", icon: "el-icon-setting" }
            },
            {
                name: "mall-members",
                path: "members",
                component: () => import("@/views/pages/mall/members.vue"),
                meta: { title: "会员中心", icon: "el-icon-user" }
            },
            { name: "mall-member-tiers", path: "member-tiers", component: () => import("@/views/pages/mall/member-tiers.vue"), meta: { title: "会员等级", icon: "el-icon-medal" } },
            { name: "mall-points", path: "points", component: () => import("@/views/pages/mall/points.vue"), meta: { title: "积分规则", icon: "el-icon-coin" } },
            { name: "mall-stored-value", path: "stored-value", component: () => import("@/views/pages/mall/stored-value.vue"), meta: { title: "储值管理", icon: "el-icon-wallet" } },
            {
                name: "mall-marketing",
                path: "marketing",
                component: () => import("@/views/pages/mall/marketing.vue"),
                meta: { title: "营销中心", icon: "el-icon-price-tag" }
            },
            {
                name: "mall-purchase",
                path: "purchase",
                component: () => import("@/views/pages/mall/purchase.vue"),
                meta: { title: "采购与供应商", icon: "el-icon-truck" }
            },
            {
                name: "mall-stores",
                path: "stores",
                component: () => import("@/views/pages/mall/stores.vue"),
                meta: { title: "门店与收银点", icon: "el-icon-office-building" }
            },
            {
                name: "mall-users",
                path: "users",
                component: () => import("@/views/pages/mall/users.vue"),
                meta: { title: "员工与权限", icon: "el-icon-lock" }
            },
            {
                name: "mall-settlement",
                path: "settlement",
                component: () => import("@/views/pages/mall/settlement.vue"),
                meta: { title: "对账与结算", icon: "el-icon-wallet" }
            },
            {
                name: "mall-devices",
                path: "devices",
                component: () => import("@/views/pages/mall/devices.vue"),
                meta: { title: "设备与打印", icon: "el-icon-printer" }
            },
            // 服装行业扩展
            { name: "mall-catalog", path: "catalog", component: () => import("@/views/pages/mall/catalog.vue"), meta: { title: "商品档案", icon: "el-icon-goods" } },
            { name: "mall-colors", path: "colors", component: () => import("@/views/pages/mall/colors.vue"), meta: { title: "颜色管理", icon: "el-icon-brush" } },
            { name: "mall-sizes", path: "sizes", component: () => import("@/views/pages/mall/sizes.vue"), meta: { title: "尺码管理", icon: "el-icon-full-screen" } },
            { name: "mall-tags", path: "tags", component: () => import("@/views/pages/mall/tags.vue"), meta: { title: "吊牌/条码", icon: "el-icon-price-tag" } },
            { name: "mall-suppliers", path: "suppliers", component: () => import("@/views/pages/mall/suppliers.vue"), meta: { title: "供应商", icon: "el-icon-truck" } },
            { name: "mall-replenishments", path: "replenishments", component: () => import("@/views/pages/mall/replenishments.vue"), meta: { title: "补货单", icon: "el-icon-box" } },
            { name: "mall-transfers", path: "transfers", component: () => import("@/views/pages/mall/transfers.vue"), meta: { title: "调拨单", icon: "el-icon-suitcase" } },
            { name: "mall-returns", path: "returns", component: () => import("@/views/pages/mall/returns.vue"), meta: { title: "退货单", icon: "el-icon-refresh" } },
            { name: "mall-inventory", path: "inventory", component: () => import("@/views/pages/mall/inventory.vue"), meta: { title: "库存查询", icon: "el-icon-box" } },
            { name: "mall-stocktake", path: "stocktake", component: () => import("@/views/pages/mall/stocktake.vue"), meta: { title: "盘点任务", icon: "el-icon-collection" } },
            { name: "mall-loss", path: "loss", component: () => import("@/views/pages/mall/loss.vue"), meta: { title: "损益处理", icon: "el-icon-remove-outline" } },
            { name: "mall-registers", path: "registers", component: () => import("@/views/pages/mall/registers.vue"), meta: { title: "收银点", icon: "el-icon-monitor" } },
            { name: "mall-shifts", path: "shifts", component: () => import("@/views/pages/mall/shifts.vue"), meta: { title: "交接班", icon: "el-icon-time" } },
            { name: "mall-receipt-templates", path: "receipt-templates", component: () => import("@/views/pages/mall/receipt-templates.vue"), meta: { title: "小票模板", icon: "el-icon-tickets" } },
            { name: "mall-day-close", path: "day-close", component: () => import("@/views/pages/mall/day-close.vue"), meta: { title: "日结/对日", icon: "el-icon-date" } },
            { name: "mall-report-sales", path: "report-sales", component: () => import("@/views/pages/mall/report-sales.vue"), meta: { title: "销售分析", icon: "el-icon-data-analysis" } },
            { name: "mall-report-matrix", path: "report-matrix", component: () => import("@/views/pages/mall/report-matrix.vue"), meta: { title: "款色尺码结构", icon: "el-icon-pie-chart" } },
            { name: "mall-report-season", path: "report-season", component: () => import("@/views/pages/mall/report-season.vue"), meta: { title: "季节动销", icon: "el-icon-trend-charts" } },
            { name: "mall-report-aging", path: "report-aging", component: () => import("@/views/pages/mall/report-aging.vue"), meta: { title: "库存老化", icon: "el-icon-timer" } },
            { name: "mall-report-staff", path: "report-staff", component: () => import("@/views/pages/mall/report-staff.vue"), meta: { title: "店员绩效", icon: "el-icon-user" } },
            { name: "mall-retail-analytics", path: "retail-analytics", component: () => import("@/views/pages/mall/retail-analytics.vue"), meta: { title: "零售动态分析", icon: "el-icon-data-board" } },
            { path: "", redirect: "/mall/dashboard" }
        ]
    },
    {
        name: "mall-login",
        path: "/mall/login",
        component: () => import("@/views/pages/mall/login.vue"),
        meta: {
            title: "商家登录",
            icon: "el-icon-user"
        }
    },
    {
        name: "main",
        path: "/main",
        component: () => import("@/views/index.vue"),
        meta: {
            title: "管理",
            icon: "el-icon-platform-eleme"
        }
    },
    {
        name: "home",
        path: "/home",
        component: () => import("@/views/home.vue"),
        meta: {
            title: "管理",
            icon: "el-icon-platform-eleme"
        }
    },
    {
        name: "login",
        path: "/login",
        component: () => import("@/views/login.vue"),
        meta: {
            title: "登录",
            icon: "el-icon-platform-eleme"
        }
    },
    {
        name: "report",
        path: "/report",
        component: () => import("@/views/pages/pos/report.vue"),
        meta: {
            title: "报表分析",
            icon: "el-icon-data-analysis"
        }
    }
]